package cn.zjyj.module.zjyj.controller.admin.deviceinstance.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 设备实例 Response VO")
@Data
@ExcelIgnoreUnannotated
public class DeviceInstanceRespVO {

    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "2805")
    @ExcelProperty("主键id")
    private Long id;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;


    @Schema(description = "设备id", requiredMode = Schema.RequiredMode.REQUIRED, example = "31789")
    @ExcelProperty("设备id")
    private Long deviceId;

    private String deviceName;

    @Schema(description = "设备编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("设备编码")
    private String code;

    @Schema(description = "采购时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("采购时间")
    private LocalDateTime procurementTime;

    @Schema(description = "设备拥有者id", requiredMode = Schema.RequiredMode.REQUIRED, example = "8195")
    @ExcelProperty("设备拥有者id")
    private Long ownerId;

    private String ownerName;

    @Schema(description = "标签", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("标签")
    private String tag;

    @Schema(description = "投入时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("投入时间")
    private LocalDateTime usageTime;

    @Schema(description = "单元id", requiredMode = Schema.RequiredMode.REQUIRED, example = "17055")
    @ExcelProperty("单元id")
    private Long unitId;

    private String unitName;

    @Schema(description = "部门id", requiredMode = Schema.RequiredMode.REQUIRED, example = "5976")
    @ExcelProperty("部门id")
    private Long departmentId;

    private String departmentName;

}